package pers.sms.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import pers.sms.dao.CourseMapper;
import pers.sms.bean.Course;
import pers.sms.service.CourseService;

import java.util.List;

/**
 * @Author ：liaochuangang
 * @Date ：2022/4/28 15:27
 * @History ：
 * @return ：$return
 */
@Service
public class CourseServiceImpl implements CourseService {

    @Resource
    private CourseMapper courseMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return courseMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Course record) {
        return courseMapper.insert(record);
    }

    @Override
    public int insertSelective(Course record) {
        return courseMapper.insertSelective(record);
    }

    @Override
    public Course selectByPrimaryKey(Long id) {
        return courseMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Course record) {
        return courseMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Course record) {
        return courseMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Course> selectList() {
        return courseMapper.selectList();
    }

    @Override
    public List<Course> getCourseList(Course course) {
        return courseMapper.getCourseList(course);
    }

    @Override
    public Integer deleteById(Long[] ids) {
        return courseMapper.deleteById(ids);
    }

}


